#include <iostream>
#include "vectorfunctions.h"


int no_ofFibonacciprimes(int x[], int l)
{
	int i, no=0;
	for(i=0;i<l;i++)
		if (isFibonacci(x[i]) && isprime(x[i]))
			++no;
return no;
}

int main()
{
	int l, n;
	int x[100];
	cout<<"Length of array : ";
	cin>>l;
	readVector(x, l);
	n = no_ofFibonacciprimes(x, l);
	cout<<n<<" numbers of the array are primes and Fibonacci\n";
	
return 0;
}
